import { createApp } from 'vue'
import App from './App.vue'
// 重置样式 - 让html标签在浏览器中有相同的表现
import 'normalize.css'
// 公共样式
import '@/assets/styles/common.less'
import router from './router'
// 导入创建pinia对象的函数
import { createPinia } from 'pinia'
import piniaPersist from 'pinia-plugin-persist'
const pinia = createPinia()
pinia.use(piniaPersist)

// import XtxSkeleton from '@/components/XtxSkeleton/XtxSkeleton.vue'
// 自动调用 install 函数,并传入app给形参
import XtxUI from '@/components/index'

import XtxDirective from '@/directive'


createApp(App).use(XtxUI).use(XtxDirective).use(router).use(pinia).mount('#app')
